export default {
  /**
   * 点位管理涉及的接口-----------------------------------------------------------------------------
   *
   *
   */

  /**
   * 点位管理列表
   * /sys/syspoint/list
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   *
   */
  "POST /sys/syspoint/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            pointId:"1",
            pointCode: "0000001",
            pointName: "具体点位名称1",
            districtId: "5",
            districtName: '下城区',
            maintenanceName: "单位名称11",
            qualityBeginTime:1515554892000,
            qualityEndTime:1515554892000,
          },
          {
            pointId:"2",
            pointCode: "0000002",
            pointName: "具体点位名称2",
            districtId: "5",
            districtName: '下城区',
            maintenanceName: "单位名称11",
            qualityBeginTime:1515554892000,
            qualityEndTime:1515554892000,
          }
        ]
      }
    });
  },


  /**
   * 添加点位
   * /sys/syspoint/save
   * @param  {string}  pointCode          点位编号
   * @param  {string}  pointName          点位名称
   * @param  {string}  pointType          点位类型
   * @param  {string}  districtId         终极区域id
   * @param  {string}  longitude          x坐标
   * @param  {string}  latitude           y坐标
   * @param  {string}  maintenanceId      维保单位
   * @param  {string}  qualityBeginTime   质保免费期 开始
   * @param  {string}  qualityEndTime     质保免费期 借宿
   * @param  {string}  remarks            备注
   *
   */
  "POST /sys/syspoint/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 修改点位信息
   * /sys/syspoint/update
   * @param  {string}  pointId            单位修改的点位ID
   * @param  {string}  pointCode          点位编号
   * @param  {string}  pointName          点位名称
   * @param  {string}  pointType          点位类型
   * @param  {string}  districtId         终极区域id
   * @param  {string}  longitude          x坐标
   * @param  {string}  latitude           y坐标
   * @param  {string}  maintenanceId      维保单位
   * @param  {string}  qualityBeginTime   质保免费期 开始
   * @param  {string}  qualityEndTime     质保免费期 借宿
   * @param  {string}  remarks            备注
   */
  "POST /sys/syspoint/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   *  获取单个点位信息
   * /sys/syspoint/info/{pointId}
   * @param  {string}  pointId            点位ID
   *
   */
  "POST /sys/syspoint/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        pointId:"1",
        pointCode: "0000001",
        pointType: "01",
        pointName: "具体点位名称1",
        longitude: "39.5718222373",
        latitude: "116.4550781250",
        districtId: "6",
        districtName: '下城区',
        maintenanceId: "1",
        maintenanceName: "单位名称11",
        qualityBeginTime:1515554892000,
        qualityEndTime:1515554892000,
        remarks:"备注内容……",
      }
    });
  },


  /**
   * 点位（单个）批量操作 删除
   * /sys/syspoint/delete
   * @param  {array}   pointIds              点位ID，支持多个
   */
  "POST /sys/syspoint/delete": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 点位批量导出
   * @param  {string}   pointIds               点位ID，支持多个
   */
  "POST /sys/syspoint/export": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 点位批量导入
   * @param  {string}   file_url    上传到服务器的文件路径（上传接口统一调用公用的，得到token后回传）
   */
  "POST /sys/syspoint/import": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 移动点位到维保单位
   * /sys/point/move
   * @param  {string}   pointIds        支持多选
   * @param  {string}   maintenanceId   需要移动到的维保单位ID
   */
  "POST /sys/syspoint/move": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },





};
